package people;

import handlers.JobHandler;

public class Enemy extends Person {

	String name;
	public int[] stats;

	public void attack() {
		
	}
	
	public Enemy(int level, short job, String name, int x, int y) {
		this.stats = new int[6];
		this.level = 1;
		this.x = x;
		this.y = y;
		for (int i = 0; i < 6; i++) {
			if (i < 2) {
				stats[i] = 10;
			} else {
				stats[i] = 3;
			}
		}
		while (this.level < level + 1) {
			this.level = this.level + 1;
			int[] growths = JobHandler.getGrowths(job);
			for (int x1 = 0; x1 < 6; x1++) {
				this.stats[x1] = this.stats[x1] + growths[x1 / constants.GeneralConstants.MOB_NERF_FACTOR];
			}
			this.health = this.stats[0];
			this.mana = this.stats[1];
		}
	}
}
